﻿//------------------------------------------------------------
// VRLauncher
// Copyright © 2024-2025.1 Song Ding
// 蓝牙列表的数据类
//------------------------------------------------------------
using UnityEngine;

namespace VRLauncher
{
    public class EntityFromListBluetoothData : EntityFromListObjectData
    {
        [SerializeField]
        string m_Address;
        [SerializeField]
        string m_BluetoothName;
        [SerializeField]
        int m_Bondstate;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="entityId">实体编号</param>
        /// <param name="typeId">实体类型编号</param>
        /// <param name="parentUI">UI父节点</param>
        /// <param name="address">蓝牙连接add</param>
        /// <param name="bluetoothName">蓝牙名称</param>
        /// <param name="bondstate">蓝牙连接状态</param>
        public EntityFromListBluetoothData(int entityId, int typeId, Transform parentUI, string address, string bluetoothName, int bondstate) : base(entityId, typeId, parentUI)
        {
            Debug.Log("entityId=" + entityId);
            m_Address = address;
            m_BluetoothName = bluetoothName;
            Debug.Log("m_BluetoothName=" + m_BluetoothName);
            m_Bondstate = bondstate;
        }
        /// <summary>
        /// 蓝牙连接id
        /// </summary>
        public string Address
        {
            get { return m_Address; }
            set { m_Address = value; }
        }
        /// <summary>
        /// 蓝牙名称
        /// </summary>
        public string BluetoothName
        {
            get { return m_BluetoothName; }
            set { m_BluetoothName = value; }
        }
        /// <summary>
        /// 蓝牙连接状态
        /// </summary>
        public int Bondstate
        {
            get { return m_Bondstate; }
            set { m_Bondstate = value; }
        }
    }
}
